<%@page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>PersonJSP</title>
</head>
<body>
<jsp:useBean id="person" class="com.example.demo5.javaBeanSamples.Person" scope="page">
</jsp:useBean>
<div>
    <li>
        姓名: <jsp:getProperty property="name" name="person"/>
    </li>
    <li>
        性别: <jsp:getProperty property="sex" name="person"/>
    </li>
    <li>
        年龄: <jsp:getProperty property="age" name="person"/>
    </li>
<li>
    已婚:<jsp:getProperty property="married" name="person"/>
</li></ui>
</div>
</body>
</html>